//! Cangjie Parser Library
//!
//! This library provides a complete parser for the Cangjie programming language
//! based on the official grammar specification.

/// Lexer module for tokenizing Cangjie source code
pub mod lexer;

/// AST module for representing Cangjie source code as an Abstract Syntax Tree
pub mod ast;

/// Parser module for parsing Cangjie tokens into an AST
pub mod parser;

// Re-export commonly used items
pub use lexer::{Lexer, Token, TokenType};
pub use ast::*;
pub use parser::Parser;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}